package A13_四大函数式接口;

import java.util.function.Consumer;

/**
 * @Author: KingWang
 * @Date: 2021/5/25
 * @Desc:
 **/
public class ConsumerDemo {

    public static void main(String[] args) {
        Consumer<Integer> consumer = (x) -> System.out.println(x);
        consumer.accept(5);
    }
}
